//
//  GradientView.h
//  QiBaoTong
//
//  Created by 韩艳锋 on 2019/6/18.
//  Copyright © 2019 策驭. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef enum : NSUInteger {
    horizontal,
    vertical
}GradientViewDirection;

@interface GradientView : UIView

/**
 设置水平的均匀渐变

 @param colors 渐变的均匀颜色
 */
-(void)setHorizontalBalanceGradien:(NSArray<UIColor*>*)colors;

-(void)setVerticalBalanceGradien:(NSArray<UIColor*>*)colors;
/**
 设置或表示渐变是否可用
 */
@property (assign, nonatomic) BOOL gradientEnable;

@end

NS_ASSUME_NONNULL_END
